<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Reranker Framework (ReFr): reranker::Candidate Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Reranker Framework (ReFr)
   
   </div>
   <div id="projectbrief">Reranking framework for structure prediction and discriminative language modeling</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespacereranker.html">reranker</a>      </li>
      <li class="navelem"><a class="el" href="classreranker_1_1_candidate.html">Candidate</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#friends">Friends</a>  </div>
  <div class="headertitle">
<div class="title">reranker::Candidate Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="reranker::Candidate" -->
<p>A class to represent a candidate in a set of candidates that constitutes a training instance for a reranker.  
 <a href="classreranker_1_1_candidate.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="candidate_8_h_source.html">candidate.H</a>&gt;</code></p>

<p><a href="classreranker_1_1_candidate-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_candidate_1_1_comparator.html">Comparator</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">An inner interface specifying comparison between two <a class="el" href="classreranker_1_1_candidate.html" title="A class to represent a candidate in a set of candidates that constitutes a training instance for a re...">Candidate</a> instances.  <a href="classreranker_1_1_candidate_1_1_comparator.html#details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_candidate.html#aab21e5d206a804f6a6d113e2623644d5">Candidate</a> (int <a class="el" href="classreranker_1_1_candidate.html#a614992f57ceed690dee107b1e4c40696">index</a>, double <a class="el" href="classreranker_1_1_candidate.html#a024f88c11b795a31cb8f5d1b47150701">loss</a>, double <a class="el" href="classreranker_1_1_candidate.html#a008fd660d5f9687efabb3fe839c19b79">baseline_score</a>, int <a class="el" href="classreranker_1_1_candidate.html#a240be5b1ef5ac9287128cfa4faf373f2">num_words</a>, const string &amp;<a class="el" href="classreranker_1_1_candidate.html#abb17414a33453509e2b7cfaf8be02baa">raw_data</a>)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="classreranker_1_1_constructor.html" title="An interface with a single virtual method that constructs a concrete instance of the abstract type T...">Constructor</a> for a candidate without features.  <a href="#aab21e5d206a804f6a6d113e2623644d5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_candidate.html#a9ae95cf5d2082b02ae8f1857d50ec29b">Candidate</a> (int <a class="el" href="classreranker_1_1_candidate.html#a614992f57ceed690dee107b1e4c40696">index</a>, double <a class="el" href="classreranker_1_1_candidate.html#a024f88c11b795a31cb8f5d1b47150701">loss</a>, double <a class="el" href="classreranker_1_1_candidate.html#a008fd660d5f9687efabb3fe839c19b79">baseline_score</a>, int <a class="el" href="classreranker_1_1_candidate.html#a240be5b1ef5ac9287128cfa4faf373f2">num_words</a>, const string &amp;<a class="el" href="classreranker_1_1_candidate.html#abb17414a33453509e2b7cfaf8be02baa">raw_data</a>, const <a class="el" href="classreranker_1_1_feature_vector.html">FeatureVector</a>&lt; int, double &gt; &amp;<a class="el" href="classreranker_1_1_candidate.html#a741433c66a4cc4dfbb1e4b89c9c6e431">features</a>, const <a class="el" href="classreranker_1_1_feature_vector.html">FeatureVector</a>&lt; string, double &gt; &amp;<a class="el" href="classreranker_1_1_candidate.html#ab49bd7b1459dcff7c450e5b504204fd5">symbolic_features</a>)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="classreranker_1_1_constructor.html" title="An interface with a single virtual method that constructs a concrete instance of the abstract type T...">Constructor</a> for a candidate with "compiled" features.  <a href="#a9ae95cf5d2082b02ae8f1857d50ec29b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_candidate.html#a1be5c468c271f2a0d987f86a9eccfcaa">~Candidate</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Destroys this candidate.  <a href="#a1be5c468c271f2a0d987f86a9eccfcaa"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_candidate.html#a614992f57ceed690dee107b1e4c40696">index</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the index of this candidate relative to the other candidates.  <a href="#a614992f57ceed690dee107b1e4c40696"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_candidate.html#ae3b58dc63cb19351a108ff01fb8bc9cf">num_errors</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the number of word errors of this candidate relative to a reference string.  <a href="#ae3b58dc63cb19351a108ff01fb8bc9cf"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_candidate.html#a4fea4832eb08476a7212cfcd8cd1212f">num_correct</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the number of correct words of this candidate relative to a reference string.  <a href="#a4fea4832eb08476a7212cfcd8cd1212f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_candidate.html#a024f88c11b795a31cb8f5d1b47150701">loss</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the loss of this candidate.  <a href="#a024f88c11b795a31cb8f5d1b47150701"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_candidate.html#a49d5bb385b20eaaef51a6987a7a230d1">score</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the reranker&rsquo;s score for this candidate.  <a href="#a49d5bb385b20eaaef51a6987a7a230d1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_candidate.html#a008fd660d5f9687efabb3fe839c19b79">baseline_score</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the baseline model score for this candidate.  <a href="#a008fd660d5f9687efabb3fe839c19b79"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_candidate.html#a240be5b1ef5ac9287128cfa4faf373f2">num_words</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the number of words in this candidate.  <a href="#a240be5b1ef5ac9287128cfa4faf373f2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classreranker_1_1_feature_vector.html">FeatureVector</a>&lt; int, <br class="typebreak"/>
double &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_candidate.html#a741433c66a4cc4dfbb1e4b89c9c6e431">features</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the feature vector for this candidate.  <a href="#a741433c66a4cc4dfbb1e4b89c9c6e431"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classreranker_1_1_feature_vector.html">FeatureVector</a>&lt; string, <br class="typebreak"/>
double &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_candidate.html#ab49bd7b1459dcff7c450e5b504204fd5">symbolic_features</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the symbolic feature vector for this candidate.  <a href="#ab49bd7b1459dcff7c450e5b504204fd5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const string &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_candidate.html#abb17414a33453509e2b7cfaf8be02baa">raw_data</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the raw data (typically the sentence) for this candidate.  <a href="#abb17414a33453509e2b7cfaf8be02baa"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_candidate.html#a1dae078e72806650bd4af3f7e7a1f451">compiled</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns whether this candidate&rsquo;s symbolic features have been compiled.  <a href="#a1dae078e72806650bd4af3f7e7a1f451"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_candidate.html#a2ae323d5d46d793fa65db5b8fcd0d6d7">set_raw_data</a> (const string &amp;<a class="el" href="classreranker_1_1_candidate.html#abb17414a33453509e2b7cfaf8be02baa">raw_data</a>)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the raw data (typically the sentence) for this candidate).  <a href="#a2ae323d5d46d793fa65db5b8fcd0d6d7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_candidate.html#a1716a1e38f3b681a60aa5eaedbdc5f0b">set_score</a> (double <a class="el" href="classreranker_1_1_candidate.html#a49d5bb385b20eaaef51a6987a7a230d1">score</a>)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the score of this candidate.  <a href="#a1716a1e38f3b681a60aa5eaedbdc5f0b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_candidate.html#a839830733c9bd627fd7f82921d740311">set_baseline_score</a> (double <a class="el" href="classreranker_1_1_candidate.html#a008fd660d5f9687efabb3fe839c19b79">baseline_score</a>)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the score of this candidate.  <a href="#a839830733c9bd627fd7f82921d740311"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_candidate.html#afbd3770aa110b9ea80ce2364088a0ffe">set_loss</a> (double <a class="el" href="classreranker_1_1_candidate.html#a024f88c11b795a31cb8f5d1b47150701">loss</a>)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the loss of this candidate.  <a href="#afbd3770aa110b9ea80ce2364088a0ffe"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_candidate.html#ac6013d797c95fa1b0490b9eedc6053e8">Compile</a> (<a class="el" href="classreranker_1_1_symbols.html">Symbols</a> *symbols, bool clear_features=false, bool clear_symbolic_features=true, bool force=false)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Compiles any symbolic features in this candidate.  <a href="#ac6013d797c95fa1b0490b9eedc6053e8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_candidate.html#aeb149e5da4251f1854eadbf50230342c">Decompile</a> (<a class="el" href="classreranker_1_1_symbols.html">Symbols</a> *symbols, bool clear_symbolic_features=false, bool clear_features=true, bool force=false)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Decompiles any non-symbolic features in this candidate.  <a href="#aeb149e5da4251f1854eadbf50230342c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_candidate.html#ac61188c8c9beba920cdc85d7c4f506c8">to_string</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a the string that would be output by operator&lt;&lt;.  <a href="#ac61188c8c9beba920cdc85d7c4f506c8"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="friends"></a>
Friends</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_candidate.html#aef7fb63c41120b60cdde365350a37ce5">FeatureExtractor</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_candidate.html#a859ab638260cebff3ff246e58ea25638">AbstractFileBackedFeatureExtractor</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">ostream &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_candidate.html#a87065a82da294d9bd4c64a39de05cf98">operator&lt;&lt;</a> (ostream &amp;os, const <a class="el" href="classreranker_1_1_candidate.html">Candidate</a> &amp;c)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Outputs a human-readable string version of this <a class="el" href="classreranker_1_1_candidate.html" title="A class to represent a candidate in a set of candidates that constitutes a training instance for a re...">Candidate</a> instance to the specified ostream.  <a href="#a87065a82da294d9bd4c64a39de05cf98"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>A class to represent a candidate in a set of candidates that constitutes a training instance for a reranker. </p>

<p>Definition at line <a class="el" href="candidate_8_h_source.html#l00060">60</a> of file <a class="el" href="candidate_8_h_source.html">candidate.H</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="aab21e5d206a804f6a6d113e2623644d5"></a><!-- doxytag: member="reranker::Candidate::Candidate" ref="aab21e5d206a804f6a6d113e2623644d5" args="(int index, double loss, double baseline_score, int num_words, const string &amp;raw_data)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classreranker_1_1_candidate.html#aab21e5d206a804f6a6d113e2623644d5">reranker::Candidate::Candidate</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>loss</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>baseline_score</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>num_words</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const string &amp;&#160;</td>
          <td class="paramname"><em>raw_data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><a class="el" href="classreranker_1_1_constructor.html" title="An interface with a single virtual method that constructs a concrete instance of the abstract type T...">Constructor</a> for a candidate without features. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td>the index of this candidate within its set </td></tr>
    <tr><td class="paramname">loss</td><td>the loss of this candidate </td></tr>
    <tr><td class="paramname">baseline_score</td><td>the baseline score of this candidate </td></tr>
    <tr><td class="paramname">num_words</td><td>the number of words of this candidate </td></tr>
    <tr><td class="paramname">raw_data</td><td>the original string for this candidate </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="candidate_8_h_source.html#l00071">71</a> of file <a class="el" href="candidate_8_h_source.html">candidate.H</a>.</p>

</div>
</div>
<a class="anchor" id="a9ae95cf5d2082b02ae8f1857d50ec29b"></a><!-- doxytag: member="reranker::Candidate::Candidate" ref="a9ae95cf5d2082b02ae8f1857d50ec29b" args="(int index, double loss, double baseline_score, int num_words, const string &amp;raw_data, const FeatureVector&lt; int, double &gt; &amp;features, const FeatureVector&lt; string, double &gt; &amp;symbolic_features)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classreranker_1_1_candidate.html#aab21e5d206a804f6a6d113e2623644d5">reranker::Candidate::Candidate</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>loss</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>baseline_score</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>num_words</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const string &amp;&#160;</td>
          <td class="paramname"><em>raw_data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classreranker_1_1_feature_vector.html">FeatureVector</a>&lt; int, double &gt; &amp;&#160;</td>
          <td class="paramname"><em>features</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classreranker_1_1_feature_vector.html">FeatureVector</a>&lt; string, double &gt; &amp;&#160;</td>
          <td class="paramname"><em>symbolic_features</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><a class="el" href="classreranker_1_1_constructor.html" title="An interface with a single virtual method that constructs a concrete instance of the abstract type T...">Constructor</a> for a candidate with "compiled" features. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td>the index of this candidate within its set </td></tr>
    <tr><td class="paramname">loss</td><td>the loss of this candidate </td></tr>
    <tr><td class="paramname">baseline_score</td><td>the baseline score of this candidate </td></tr>
    <tr><td class="paramname">num_words</td><td>the number of words of this candidate </td></tr>
    <tr><td class="paramname">raw_data</td><td>the original string for this candidate </td></tr>
    <tr><td class="paramname">features</td><td>the features for this candidate </td></tr>
    <tr><td class="paramname">symbolic_features</td><td>the symbolic features for this candidate </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="candidate_8_h_source.html#l00090">90</a> of file <a class="el" href="candidate_8_h_source.html">candidate.H</a>.</p>

</div>
</div>
<a class="anchor" id="a1be5c468c271f2a0d987f86a9eccfcaa"></a><!-- doxytag: member="reranker::Candidate::~Candidate" ref="a1be5c468c271f2a0d987f86a9eccfcaa" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classreranker_1_1_candidate.html#a1be5c468c271f2a0d987f86a9eccfcaa">reranker::Candidate::~Candidate</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Destroys this candidate. </p>

<p>Definition at line <a class="el" href="candidate_8_h_source.html#l00105">105</a> of file <a class="el" href="candidate_8_h_source.html">candidate.H</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a008fd660d5f9687efabb3fe839c19b79"></a><!-- doxytag: member="reranker::Candidate::baseline_score" ref="a008fd660d5f9687efabb3fe839c19b79" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="classreranker_1_1_candidate.html#a008fd660d5f9687efabb3fe839c19b79">reranker::Candidate::baseline_score</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the baseline model score for this candidate. </p>

<p>Definition at line <a class="el" href="candidate_8_h_source.html#l00139">139</a> of file <a class="el" href="candidate_8_h_source.html">candidate.H</a>.</p>

</div>
</div>
<a class="anchor" id="ac6013d797c95fa1b0490b9eedc6053e8"></a><!-- doxytag: member="reranker::Candidate::Compile" ref="ac6013d797c95fa1b0490b9eedc6053e8" args="(Symbols *symbols, bool clear_features=false, bool clear_symbolic_features=true, bool force=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classreranker_1_1_candidate.html#ac6013d797c95fa1b0490b9eedc6053e8">reranker::Candidate::Compile</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classreranker_1_1_symbols.html">Symbols</a> *&#160;</td>
          <td class="paramname"><em>symbols</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>clear_features</em> = <code>false</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>clear_symbolic_features</em> = <code>true</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>force</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Compiles any symbolic features in this candidate. </p>
<p>Feature weights for symbolic features will be added to those for any features already specified with <code>int</code> uid&rsquo;s.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">symbols</td><td>the map from symbols (string instances) to unique integer id&rsquo;s </td></tr>
    <tr><td class="paramname">clear_features</td><td>whether to clear the &ldquo;normal&rdquo; feature vector <b><em>prior to</em></b> compiling symbolic features </td></tr>
    <tr><td class="paramname">clear_symbolic_features</td><td>whether to clear the symbolic feature vector <b><em>after</em></b> updating the &ldquo;regular&rdquo; feature vector (to save space) </td></tr>
    <tr><td class="paramname">force</td><td>forces feature compilation, even if this method has been previously invoked </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>whether any symbolic features were actually compiled by this method invocation </dd></dl>

<p>Definition at line <a class="el" href="candidate_8_c_source.html#l00042">42</a> of file <a class="el" href="candidate_8_c_source.html">candidate.C</a>.</p>

</div>
</div>
<a class="anchor" id="a1dae078e72806650bd4af3f7e7a1f451"></a><!-- doxytag: member="reranker::Candidate::compiled" ref="a1dae078e72806650bd4af3f7e7a1f451" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classreranker_1_1_candidate.html#a1dae078e72806650bd4af3f7e7a1f451">reranker::Candidate::compiled</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns whether this candidate&rsquo;s symbolic features have been compiled. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classreranker_1_1_candidate.html#ac6013d797c95fa1b0490b9eedc6053e8" title="Compiles any symbolic features in this candidate.">Compile</a> </dd></dl>

<p>Definition at line <a class="el" href="candidate_8_h_source.html#l00153">153</a> of file <a class="el" href="candidate_8_h_source.html">candidate.H</a>.</p>

</div>
</div>
<a class="anchor" id="aeb149e5da4251f1854eadbf50230342c"></a><!-- doxytag: member="reranker::Candidate::Decompile" ref="aeb149e5da4251f1854eadbf50230342c" args="(Symbols *symbols, bool clear_symbolic_features=false, bool clear_features=true, bool force=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classreranker_1_1_candidate.html#aeb149e5da4251f1854eadbf50230342c">reranker::Candidate::Decompile</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classreranker_1_1_symbols.html">Symbols</a> *&#160;</td>
          <td class="paramname"><em>symbols</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>clear_symbolic_features</em> = <code>false</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>clear_features</em> = <code>true</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>force</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Decompiles any non-symbolic features in this candidate. </p>
<p>Feature weights for non-symbolic features will be added to those for any features already specified with <code>string</code> uid&rsquo;s.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">symbols</td><td>the map from symbols (string instances) to unique integer id&rsquo;s </td></tr>
    <tr><td class="paramname">clear_symbolic_features</td><td>whether to clear the symbolic feature vector <b><em>prior to</em></b> decompiling features </td></tr>
    <tr><td class="paramname">clear_features</td><td>whether to clear the &ldquo;normal&rdquo; feature vector <b><em>after</em></b> updating the symbolic feature vector (to save space) </td></tr>
    <tr><td class="paramname">force</td><td>forces feature decompilation, even if this method has been previously invoked </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="candidate_8_c_source.html#l00067">67</a> of file <a class="el" href="candidate_8_c_source.html">candidate.C</a>.</p>

</div>
</div>
<a class="anchor" id="a741433c66a4cc4dfbb1e4b89c9c6e431"></a><!-- doxytag: member="reranker::Candidate::features" ref="a741433c66a4cc4dfbb1e4b89c9c6e431" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classreranker_1_1_feature_vector.html">FeatureVector</a>&lt;int,double&gt;&amp; <a class="el" href="classreranker_1_1_candidate.html#a741433c66a4cc4dfbb1e4b89c9c6e431">reranker::Candidate::features</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the feature vector for this candidate. </p>

<p>Definition at line <a class="el" href="candidate_8_h_source.html#l00143">143</a> of file <a class="el" href="candidate_8_h_source.html">candidate.H</a>.</p>

</div>
</div>
<a class="anchor" id="a614992f57ceed690dee107b1e4c40696"></a><!-- doxytag: member="reranker::Candidate::index" ref="a614992f57ceed690dee107b1e4c40696" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classreranker_1_1_candidate.html#a614992f57ceed690dee107b1e4c40696">reranker::Candidate::index</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the index of this candidate relative to the other candidates. </p>

<p>Definition at line <a class="el" href="candidate_8_h_source.html#l00127">127</a> of file <a class="el" href="candidate_8_h_source.html">candidate.H</a>.</p>

</div>
</div>
<a class="anchor" id="a024f88c11b795a31cb8f5d1b47150701"></a><!-- doxytag: member="reranker::Candidate::loss" ref="a024f88c11b795a31cb8f5d1b47150701" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="classreranker_1_1_candidate.html#a024f88c11b795a31cb8f5d1b47150701">reranker::Candidate::loss</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the loss of this candidate. </p>

<p>Definition at line <a class="el" href="candidate_8_h_source.html#l00135">135</a> of file <a class="el" href="candidate_8_h_source.html">candidate.H</a>.</p>

</div>
</div>
<a class="anchor" id="a4fea4832eb08476a7212cfcd8cd1212f"></a><!-- doxytag: member="reranker::Candidate::num_correct" ref="a4fea4832eb08476a7212cfcd8cd1212f" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classreranker_1_1_candidate.html#a4fea4832eb08476a7212cfcd8cd1212f">reranker::Candidate::num_correct</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the number of correct words of this candidate relative to a reference string. </p>

<p>Definition at line <a class="el" href="candidate_8_h_source.html#l00133">133</a> of file <a class="el" href="candidate_8_h_source.html">candidate.H</a>.</p>

</div>
</div>
<a class="anchor" id="ae3b58dc63cb19351a108ff01fb8bc9cf"></a><!-- doxytag: member="reranker::Candidate::num_errors" ref="ae3b58dc63cb19351a108ff01fb8bc9cf" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classreranker_1_1_candidate.html#ae3b58dc63cb19351a108ff01fb8bc9cf">reranker::Candidate::num_errors</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the number of word errors of this candidate relative to a reference string. </p>

<p>Definition at line <a class="el" href="candidate_8_h_source.html#l00130">130</a> of file <a class="el" href="candidate_8_h_source.html">candidate.H</a>.</p>

</div>
</div>
<a class="anchor" id="a240be5b1ef5ac9287128cfa4faf373f2"></a><!-- doxytag: member="reranker::Candidate::num_words" ref="a240be5b1ef5ac9287128cfa4faf373f2" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classreranker_1_1_candidate.html#a240be5b1ef5ac9287128cfa4faf373f2">reranker::Candidate::num_words</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the number of words in this candidate. </p>

<p>Definition at line <a class="el" href="candidate_8_h_source.html#l00141">141</a> of file <a class="el" href="candidate_8_h_source.html">candidate.H</a>.</p>

</div>
</div>
<a class="anchor" id="abb17414a33453509e2b7cfaf8be02baa"></a><!-- doxytag: member="reranker::Candidate::raw_data" ref="abb17414a33453509e2b7cfaf8be02baa" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const string&amp; <a class="el" href="classreranker_1_1_candidate.html#abb17414a33453509e2b7cfaf8be02baa">reranker::Candidate::raw_data</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the raw data (typically the sentence) for this candidate. </p>

<p>Definition at line <a class="el" href="candidate_8_h_source.html#l00149">149</a> of file <a class="el" href="candidate_8_h_source.html">candidate.H</a>.</p>

</div>
</div>
<a class="anchor" id="a49d5bb385b20eaaef51a6987a7a230d1"></a><!-- doxytag: member="reranker::Candidate::score" ref="a49d5bb385b20eaaef51a6987a7a230d1" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="classreranker_1_1_candidate.html#a49d5bb385b20eaaef51a6987a7a230d1">reranker::Candidate::score</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the reranker&rsquo;s score for this candidate. </p>

<p>Definition at line <a class="el" href="candidate_8_h_source.html#l00137">137</a> of file <a class="el" href="candidate_8_h_source.html">candidate.H</a>.</p>

</div>
</div>
<a class="anchor" id="a839830733c9bd627fd7f82921d740311"></a><!-- doxytag: member="reranker::Candidate::set_baseline_score" ref="a839830733c9bd627fd7f82921d740311" args="(double baseline_score)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classreranker_1_1_candidate.html#a839830733c9bd627fd7f82921d740311">reranker::Candidate::set_baseline_score</a> </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>baseline_score</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the score of this candidate. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">baseline_score</td><td>the new baseline_score of this candidate </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="candidate_8_h_source.html#l00167">167</a> of file <a class="el" href="candidate_8_h_source.html">candidate.H</a>.</p>

</div>
</div>
<a class="anchor" id="afbd3770aa110b9ea80ce2364088a0ffe"></a><!-- doxytag: member="reranker::Candidate::set_loss" ref="afbd3770aa110b9ea80ce2364088a0ffe" args="(double loss)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classreranker_1_1_candidate.html#afbd3770aa110b9ea80ce2364088a0ffe">reranker::Candidate::set_loss</a> </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>loss</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the loss of this candidate. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">loss</td><td>the new loss of this candidate. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="candidate_8_h_source.html#l00174">174</a> of file <a class="el" href="candidate_8_h_source.html">candidate.H</a>.</p>

</div>
</div>
<a class="anchor" id="a2ae323d5d46d793fa65db5b8fcd0d6d7"></a><!-- doxytag: member="reranker::Candidate::set_raw_data" ref="a2ae323d5d46d793fa65db5b8fcd0d6d7" args="(const string &amp;raw_data)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classreranker_1_1_candidate.html#a2ae323d5d46d793fa65db5b8fcd0d6d7">reranker::Candidate::set_raw_data</a> </td>
          <td>(</td>
          <td class="paramtype">const string &amp;&#160;</td>
          <td class="paramname"><em>raw_data</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the raw data (typically the sentence) for this candidate). </p>

<p>Definition at line <a class="el" href="candidate_8_h_source.html#l00157">157</a> of file <a class="el" href="candidate_8_h_source.html">candidate.H</a>.</p>

</div>
</div>
<a class="anchor" id="a1716a1e38f3b681a60aa5eaedbdc5f0b"></a><!-- doxytag: member="reranker::Candidate::set_score" ref="a1716a1e38f3b681a60aa5eaedbdc5f0b" args="(double score)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classreranker_1_1_candidate.html#a1716a1e38f3b681a60aa5eaedbdc5f0b">reranker::Candidate::set_score</a> </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>score</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the score of this candidate. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">score</td><td>the new score of this candidate </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="candidate_8_h_source.html#l00162">162</a> of file <a class="el" href="candidate_8_h_source.html">candidate.H</a>.</p>

</div>
</div>
<a class="anchor" id="ab49bd7b1459dcff7c450e5b504204fd5"></a><!-- doxytag: member="reranker::Candidate::symbolic_features" ref="ab49bd7b1459dcff7c450e5b504204fd5" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classreranker_1_1_feature_vector.html">FeatureVector</a>&lt;string,double&gt;&amp; <a class="el" href="classreranker_1_1_candidate.html#ab49bd7b1459dcff7c450e5b504204fd5">reranker::Candidate::symbolic_features</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the symbolic feature vector for this candidate. </p>

<p>Definition at line <a class="el" href="candidate_8_h_source.html#l00145">145</a> of file <a class="el" href="candidate_8_h_source.html">candidate.H</a>.</p>

</div>
</div>
<a class="anchor" id="ac61188c8c9beba920cdc85d7c4f506c8"></a><!-- doxytag: member="reranker::Candidate::to_string" ref="ac61188c8c9beba920cdc85d7c4f506c8" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string <a class="el" href="classreranker_1_1_candidate.html#ac61188c8c9beba920cdc85d7c4f506c8">reranker::Candidate::to_string</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns a the string that would be output by operator&lt;&lt;. </p>

<p>Definition at line <a class="el" href="candidate_8_h_source.html#l00238">238</a> of file <a class="el" href="candidate_8_h_source.html">candidate.H</a>.</p>

</div>
</div>
<hr/><h2>Friends And Related Function Documentation</h2>
<a class="anchor" id="a859ab638260cebff3ff246e58ea25638"></a><!-- doxytag: member="reranker::Candidate::AbstractFileBackedFeatureExtractor" ref="a859ab638260cebff3ff246e58ea25638" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">friend class <a class="el" href="classreranker_1_1_abstract_file_backed_feature_extractor.html">AbstractFileBackedFeatureExtractor</a><code> [friend]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="candidate_8_h_source.html#l00063">63</a> of file <a class="el" href="candidate_8_h_source.html">candidate.H</a>.</p>

</div>
</div>
<a class="anchor" id="aef7fb63c41120b60cdde365350a37ce5"></a><!-- doxytag: member="reranker::Candidate::FeatureExtractor" ref="aef7fb63c41120b60cdde365350a37ce5" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">friend class <a class="el" href="classreranker_1_1_feature_extractor.html">FeatureExtractor</a><code> [friend]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="candidate_8_h_source.html#l00062">62</a> of file <a class="el" href="candidate_8_h_source.html">candidate.H</a>.</p>

</div>
</div>
<a class="anchor" id="a87065a82da294d9bd4c64a39de05cf98"></a><!-- doxytag: member="reranker::Candidate::operator&lt;&lt;" ref="a87065a82da294d9bd4c64a39de05cf98" args="(ostream &amp;os, const Candidate &amp;c)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ostream&amp; operator&lt;&lt; </td>
          <td>(</td>
          <td class="paramtype">ostream &amp;&#160;</td>
          <td class="paramname"><em>os</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classreranker_1_1_candidate.html">Candidate</a> &amp;&#160;</td>
          <td class="paramname"><em>c</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [friend]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Outputs a human-readable string version of this <a class="el" href="classreranker_1_1_candidate.html" title="A class to represent a candidate in a set of candidates that constitutes a training instance for a re...">Candidate</a> instance to the specified ostream. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">os</td><td>the output stream to which to output a human-readable version of this candidate </td></tr>
    <tr><td class="paramname">c</td><td>the candidate to be output to the specified output stream </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="candidate_8_h_source.html#l00226">226</a> of file <a class="el" href="candidate_8_h_source.html">candidate.H</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="candidate_8_h_source.html">candidate.H</a></li>
<li><a class="el" href="candidate_8_c_source.html">candidate.C</a></li>
</ul>
</div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Tue Apr 9 2013 11:56:30 for Reranker Framework (ReFr) by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
